package org.lc.cmd.util;

import org.springframework.core.annotation.AnnotationUtils;

import java.lang.annotation.Annotation;
import java.lang.reflect.AnnotatedElement;

public class AnnoUtil {
    public static <T extends Annotation> T findAnno(AnnotatedElement element, Class<T> annoClass) {
        return AnnotationUtils.findAnnotation(element, annoClass);
    }
}
